package m.framework.test;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;

import javax.servlet.http.HttpServletRequest;

import m.framework.web.RequestMap;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author ming
 * @date 2014年2月19日下午1:21:05
 */
public class HttpRequestMap extends RequestMap{
	private static Logger log = LoggerFactory.getLogger(HttpRequestMap.class);
	private Map<String,String[]> map=new HashMap();
	
	public HttpRequestMap(HttpServletRequest request) {
		super(request);
	}
	
	public void put(String key, String value) {
		map.put(key,new String[]{value});
	}

	public String[] get(Object key) {
		return map.get((String) key);
	}
	public String[] put(String key, String[] value) {
		map.put(key,value);
		return value;
	}
	
	public Set<String> keySet() {
		return map.keySet();
	}
	
	public Set<java.util.Map.Entry<String, String[]>> entrySet() {
		return map.entrySet();
	}

}




